<div class="kontent_box">
<div class="kontent_panel">
<div class="reg_input">
    
    
    <h2>Fakultas</h2>
    <table class="tabel_theme" style="margin-right: 52px">
        <thead style="background: #333;">
            <tr >
                <td style="background: #006699; color: #fff; font-weight: bold">Nama Fakultas</td>
                <td style="background: #006699; color: #fff; font-weight: bold">Nama Singkatan</td>
                <td style="background: #006699; color: #fff; font-weight: bold">Lihat</td>
                <td style="background: #006699; color: #fff; font-weight: bold">Edit </td>
                <td style="background: #006699; color: #fff; font-weight: bold">Hapus</td>
                
            </tr>
        </thead>
        <tbody>
            <?php foreach ($list_fakultas->result() as $k) { ?>
            <tr>
                <td><?php echo $k->FAKULTAS_NAMA; ?></td>
                <td><?php echo $k->FAKULTAS_NAMA_SINGKATAN; ?></td>
                <td>
                    <form method="post" action="<?php echo site_url(); ?>/fakultas/view_fakultas/">
                    <input type="hidden" name="fakultas_id" value="<?php echo $k->FAKULTAS_ID; ?>"/>
                    <input  type="submit" value="Lihat"/>
                    </form>
                </td>
                <td>
                    <form method="post" action="<?php echo site_url(); ?>/fakultas/edit_fakultas/">
                    <input type="hidden" name="fakultas_id" value="<?php echo $k->FAKULTAS_ID; ?>"/>
                    <input  type="submit" value="Edit"/>
                    </form>
                </td>
                <td>
                    <form method="post" action="<?php echo site_url(); ?>/fakultas/del_fakultas/">
                       <input type="hidden" name="fakultas_id" value="<?php echo $k->FAKULTAS_ID; ?>" />
                       <input type="submit" value="Hapus"  onclick="return confirm('Apakah anda yakin untuk menghapus <?php echo $k->FAKULTAS_NAMA; ?>?')"/>
                    </form>
                </td>
            </tr>
            <?php } ?>
        </tbody>
        </table>
    
    <h2>Jurusan</h2>
    <table class="tabel_theme" >
        <thead style="background: #333;">
            <tr >
                <td style="background: #006699; color: #fff; font-weight: bold">Fakultas</td>
                <td style="background: #006699; color: #fff; font-weight: bold">Jurusan</td>
                <td style="background: #006699; color: #fff; font-weight: bold">Lihat</td>
                <td style="background: #006699; color: #fff; font-weight: bold">Edit </td>
                <td style="background: #006699; color: #fff; font-weight: bold">Hapus</td>
                
            </tr>
        </thead>
        <tbody>
            <?php foreach ($list_jurusan->result() as $j) { ?>
            <tr>
                <td><?php echo $j->FAKULTAS_NAMA_SINGKATAN; ?></td>
                <td><?php echo $j->JURUSAN_NAMA; ?></td>
                <td>
                    <form method="post" action="<?php echo site_url(); ?>/jurusan/view_jurusan/">
                    <input type="hidden" name="jurusan_id" value="<?php echo $j->JURUSAN_ID; ?>"/>
                    <input type="hidden" name="fakultas_id" value="<?php echo $j->FAKULTAS_ID; ?>"/>
                    <input  type="submit" value="Lihat"/>
                    </form>
                </td>
                <td>
                    <form method="post" action="<?php echo site_url(); ?>/jurusan/edit_jurusan/">
                    <input type="hidden" name="jurusan_id" value="<?php echo $j->JURUSAN_ID; ?>"/>
                    <input  type="submit" value="Edit"/>
                    </form>
                </td>
                <td>
                    <form method="post" action="<?php echo site_url(); ?>/jurusan/del_jurusan/">
                       <input type="hidden" name="jurusan_id" value="<?php echo $j->JURUSAN_ID; ?>" />
                       <input type="submit" value="Hapus"  onclick="return confirm('Apakah anda yakin untuk menghapus <?php echo $j->JURUSAN_NAMA; ?>?')"/>
                    </form>
                </td> 
            </tr>
            <?php } ?>
        </tbody>
        </table>
        
</div>  
</div>
